/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dawnland02.model.quest;

import java.util.HashMap;
import java.util.Map;

/**
 * @author Petru Obreja (obrejap@yahoo.com)
 */
public class QuestFactory {
    private static Integer questId = 1;

    public static Quest createMoveToQuest(Integer destinationNodeId){
        Map<QuestParam, Object> params = new HashMap<QuestParam, Object>();
        params.put(QuestParam.MOVE_TO_DESTINATION, destinationNodeId);
        return new Quest(questId++, QuestType.MOVE_TO, params);
    }

    public static Quest createBuildRoadToQuest(Integer destinationNodeId){
        Map<QuestParam, Object> params = new HashMap<QuestParam, Object>();
        params.put(QuestParam.BUILD_ROAD_TO_DESTINATION, destinationNodeId);
        return new Quest(questId++, QuestType.BUILD_ROAD_TO, params);
    }
}
